@forelse($system as $first)
    <dl class="cate-box" style="border: 1px dotted #e2e2e2">
        <dt>
            <div class="cate-first"><input id="menu{{$first['id']}}" type="checkbox" name="rel[{{$first['id']}}]"
                                           value="{{$first['id']}}" title="{{$first['name']}}"
                                           lay-skin="primary" {{$first['own']??''}} ></div>
        </dt>
        @if(isset($first['_child']))
            <dd>
            @foreach($first['_child'] as $second)
             <input id="menu{{$first['id']}}-{{$second['id']}}" type="checkbox"
                                                    name="rel[{{$first['id']}}][sub][]" value="{{$second['id']}}"
                                                    title="{{$second['name']}}"
                                                    lay-skin="primary" {{$second['own']??''}}>


            @endforeach
            </dd>
        @endif
    </dl>
@empty
    <div style="text-align: center;padding:20px 0;">
        无数据
    </div>
@endforelse